﻿using B.S.BasicData.Domain.Entity;
using B.S.BasicData.Domain.Entity.Approval;
using B.S.BasicData.Domian.Entitys;
using Microsoft.EntityFrameworkCore;

namespace B.S.BasicData.Infastructure
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions options) : base(options)
        {
        }
        public DbSet<UsersModel> UsersModels { get; set; }
        public DbSet<ProvinceModel> ProvinceModels { get; set; }
        public DbSet<CityModel> CityModels { get; set; }
        public DbSet<CountyModel> CountyModels { get; set; }

        public DbSet<RoleModel> RoleModels { get; set; }
        public DbSet<UserRoleModel> UserRoleModels { get; set; }

        public DbSet<EmployeesModel> EmployeesModels { get; set; }
        public DbSet<PathModel> PathModels { get; set; }
        public DbSet<RolePermissionModel> RolePermissionModels { get; set; }
        public DbSet<ApprovalModel> ApprovalModels { get; set; }
        public DbSet<LeaveTypeModel> LeaveTypeModels { get; set; }
        public DbSet<DeparmentModel> DeparmentModels { get; set; }

    }
}
